<script type="text/javascript">
	function addLabel(obj) {
		var content = $("#label_content").val();
        var book_id = $(obj).attr("book_id");
        $.post("__APP__/Book/addLabel", {
            content: content,
            book_id: book_id 
        }, function(result){
            result = JSON.parse(result);
			if(result.status == 1) {
				$("#_label").append("<span>"+content+" </span>")
			}
        });
	}
</script>

		<div id="one_book">
			<p id="book_photo">
				<img src="{&UPLOAD_FILE_PATH_VIEW}{$book.picture}" width="300px"/>
			</p>
				
			<div id="book_information">
				<h1>{$book.title}</h1>
				<p>作者：{$book.author}</p>
				<p>所属小组：{$book.group.name}</p>
				<p id="_label">标签：
					<volist name="book.labels" id="label"> 
						<span>{$label.content} </span>
					</volist>
				</p>
				<p>简介:{$book.introduction}</p>
			</div>
			
			<in name="book.group_id" value="$user.group_ids">
				<a class="buttons" href="__APP__/Note/writeNote?book_id={$book.id}">写笔记</a>
			</in>
			
			<p id="add_mark">添加标签：<input type="text" id="label_content"/>
			<input class="buttons" type="button" value="添加" id="add_label_button" onclick="addLabel(this);" book_id="{$book.id}"></p>
		</div>	

<include file="Public:common"/>